<%--
  Created by IntelliJ IDEA.
  User: YanHilin
  Date: 2020/4/27
  Time: 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <a class="navbar-brand" href="#">Onlineflower</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="index.jsp">首页 <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">用户</a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown1">
                        <a class="dropdown-item" href="page/loginUser/login.jsp">用户登录</a>
                        <a class="dropdown-item" href="page/loginUser/register.jsp">用户注册</a>
                    </div>
                </li>

                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown2" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        商家
                    </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown2">
                        <a class="dropdown-item" href="page/loginEnterprise/login.jsp">商家登录</a>
                        <a class="dropdown-item" href="page/loginEnterprise/register.jsp">商家申请</a>
                    </div>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="page/loginAdmin/login.jsp">管理员</a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="page/cmain/flower.jsp">鲜花知识区</a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="page/cmain/cart.jsp">购物车&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
                </li>
            </ul>
            <%--<form class="form-inline my-2 my-lg-0">
                <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
            </form>--%>
            <form action="client/flowerServlet" method="post">
                <input type="hidden" name="action" value="noquery">
                <input name="content" style="line-height: 30px;display: inline-block;margin-top: 5px;width: 500px;border-radius: 7px" type="search" placeholder="请输入鲜花名称、店铺名称或价格" aria-label="Search">
                <button class="btn btn-outline-danger" type="submit" style="background-color: white">搜索</button>
            </form>
        </div>
    </nav>
</div>

